package com.sevenGroup.pawnshop.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.CodePointLength;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("更新信息和新增门店传入的门店对象")
public class BrandForm {
    @Min(value = 1)
    @ApiModelProperty("品牌id")
    private Integer brandId;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("品牌名字")
    private String brandName;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("品牌图片")
    private String brandImage;
    @NotNull

    @Length(min = 1)
    @ApiModelProperty("品牌状态")
    private String brandState;
    @ApiModelProperty("商品大类id集合")
    private List<Integer> list;
}
